package com.csx.micrometer.demo.consumer;

import com.csx.micrometer.invoke.core.outbound.loadbalance.MicrometerLoadBalancerOutboundInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author cuisongxu
 * @date 2022/12/3 23:45
 */
@EnableFeignClients
@SpringBootApplication
public class DemoConsumerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(DemoConsumerApplication.class, args);
        MicrometerLoadBalancerOutboundInterceptor micrometerLoadBalancerOutboundInterceptor = applicationContext.getBean("micrometerLoadBalancerOutboundInterceptor", MicrometerLoadBalancerOutboundInterceptor.class);
        System.out.println(micrometerLoadBalancerOutboundInterceptor);
    }
}
